//
//  vspOperation.h
//  妙居
//
//  Created by gaogao on 19/07/2017.
//  Copyright © 2017 miotlink. All rights reserved.
//

#import <Foundation/Foundation.h>



typedef void(^vspSuccessBlock)();
typedef void(^vspFailureBlock)(NSError *error);

@interface vspOperation : NSObject



+ (instancetype)shareInstance;

-(void)connectDeviceGetIp:(NSString*)ip
                     port:(int)port
                  success:(vspSuccessBlock)success
                  failure:(vspFailureBlock)failure;



- (void)sendCommand:(NSString*)command;

- (void)activedisconnect;

@end
